package com.nondo.dean.auth.common.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
public class MenuRoleItem implements Serializable {
    private static final long serialVersionUID = -6580850833889102711L;

    @NotBlank(message = "菜单编号不能为空")
    private Long menuId;

    @NotEmpty(message = "角色编号不能为空")
    private Map<String, List<Long>> roleIds;

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Map<String, List<Long>> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Map<String, List<Long>> roleIds) {
        this.roleIds = roleIds;
    }
    
}
